<#assign ctrl_base_name = "TabExpPanelControlBase"/>
<#assign import_block>
import ${srfclassname('${appde.getCodeName()}')}AuthService from '@/authservice/${srffilepath2(appde.getCodeName())}/${srffilepath2(appde.getCodeName())}-auth-service';
import { Environment } from '@/environments/environment';
</#assign>
<#ibizinclude>
../@MACRO/CONTROL/CONTROL_HEADER-BASE.vue.ftl
</#ibizinclude>
    /**
     * 是否初始化
     *
     * @protected
     * @returns {any}
     * @memberof ${srfclassname(ctrl.codeName)}Base
     */
    protected isInit: any = {
<#list ctrl.getPSControls() as tabviewpanel>
        ${tabviewpanel.name}: <#if tabviewpanel_index == 0> true <#else> false </#if>,
</#list>
    }

    /**
     * 被激活的分页面板
     *
     * @protected
     * @type {string}
     * @memberof ${srfclassname(ctrl.codeName)}Base
     */
    protected activatedTabViewPanel: string = '<#list ctrl.getPSControls() as tabviewpanel><#if tabviewpanel_index==0>${tabviewpanel.name}</#if></#list>';

    /**
     * 实体权限服务对象
     *
     * @protected
     * @type ${appde.getCodeName()}AuthServiceBase
     * @memberof TabExpViewtabexppanelBase
     */
    protected appAuthService: ${appde.getCodeName()}AuthService = new ${appde.getCodeName()}AuthService();

    /**
     * 分页面板权限标识存储对象
     *
     * @protected
     * @type {*}
     * @memberof ${srfclassname('${ctrl.codeName}')}Base
     */
    protected authResourceObject:any = {<#list ctrl.getPSControls() as tabviewpanel>'${tabviewpanel.name}':{resourcetag:<#if tabviewpanel.getEmbeddedPSAppDEView()?? && tabviewpanel.getEmbeddedPSAppDEView().getAccessKey()??>'${tabviewpanel.getEmbeddedPSAppDEView().getAccessKey()}'<#else>null</#if><#if tabviewpanel.getPSDEOPPriv?? && tabviewpanel.getPSDEOPPriv()??>,actiontarget: 'SINGLEKEY',noprivdisplaymode:2,dataaccaction:'${tabviewpanel.getPSDEOPPriv().getName()}'</#if>,visabled: true,disabled: false}<#if tabviewpanel_has_next>,</#if></#list>};

    /**
     * 组件创建完毕
     *
     * @protected
     * @memberof ${srfclassname(ctrl.codeName)}Base
     */
    protected ctrlCreated(): void {
        //设置分页导航srfparentdename和srfparentkey
        <#if ctrl.getPSAppDataEntity()??>
        <#assign appDataEntity = ctrl.getPSAppDataEntity()/>
        if (this.context.${appDataEntity.getCodeName()?lower_case}) {
            Object.assign(this.context, { srfparentdename: '${appDataEntity.getCodeName()}', srfparentkey: this.context.${appDataEntity.getCodeName()?lower_case} });
        }
        </#if>
        super.ctrlCreated();
    }
<#ibizinclude>
../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl
</#ibizinclude>